package io.renren.modules.substation.service.impl;

import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TInfoBackupConfigDao;
import io.renren.modules.substation.entity.TInfoBackupConfigEntity;
import io.renren.modules.substation.service.TInfoBackupConfigService;


@Service("tInfoBackupConfigService")
public class TInfoBackupConfigServiceImpl extends ServiceImpl<TInfoBackupConfigDao, TInfoBackupConfigEntity> implements TInfoBackupConfigService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TInfoBackupConfigEntity> page = this.page(
                new Query<TInfoBackupConfigEntity>().getPage(params),
                new QueryWrapper<TInfoBackupConfigEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int updateAllIsvaild(TInfoBackupConfigEntity tInfoBackupConfigEntity){
        return baseMapper.updateAllIsvaild(tInfoBackupConfigEntity);
    }

}